package com.le.book.util;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;

public class BookUtil {
	
	public static void showMessage(Shell shell, String title, String message) {
		// 登陆失败，弹窗提示
		MessageBox mb = new MessageBox(shell, SWT.NONE);
		mb.setText(title);
		mb.setMessage(message);
		mb.open();
	}
	
	public static void showMessage(Shell shell, String message) {
		// 重载
		showMessage(shell, "消息提示", message);
	}
	
}
